package cn.tedu.mybatisxml.mapper;

import cn.tedu.mybatisxml.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    int insert(@Param("content") String content,
               @Param("user_id") Integer userId,
               @Param("weibo_id") Integer weiboId);

    int update(@Param("content") String cont, @Param("id") Integer id);

    int deleteByIds1(Integer[] ids);
    int deleteByIds2(Integer... ids);
    int deleteByIds3(List<Integer> ids);

    int dynamicUpdate(Comment comment);
}
